package com.boot.common.po;

public enum StatusCodeEnum {

    SUCCESS(200, "操作成功"),
    ERROR(400, "操作失败"),


    USER_NOT_EXIST(20001, "用户不存在"),
    LOGINE_RROR(20002, "用户名或密码错误"),
    ACCESS_ERROR(20003, "权限不足"),
    REMOTE_ERROR(20004, "远程调用失败"),
    REP_ERROR(20005, "重复操作"),

    NOT_TOKEN(30001, "无token"),
    TOKEN_EXPIRED(30002, "Token已过期"),
    ILLEGAL_TOKEN(30003, "非法Token"),
    OTHER_CLIENTS_LOGGED_IN(30004, "其他客户端已登录"),

    ;


    private int code;
    private String content;

    private StatusCodeEnum(int code, String content) {
        this.code = code;
        this.content = content;
    }

    public int getCode() {
        return code;
    }

    public String getContent() {
        return content;
    }
}

